#ifndef __MQTT_CLIENT_H__
#define __MQTT_CLIENT_H__
#if 0
#define STR_TOKEN           "token"
#define STR_TIMESTAMP       "timestamp"
#define STR_BODY            "body"
#define STR_SERIALNUM       "serialNum"
#define STR_CHIPTYPE        "chipType"

typedef struct
{
    char topic[128];
    char msg[1024];
    int flag;
} response_msg;

enum {
    MQTT_CLIENT_CREAT,      /* 创建client */
    MQTT_CLIENT_SET_CB,     /* client设置callback */
    MQTT_CLIENT_CONNECT,    /* client连接到broker */
    MQTT_CLIENT_SUBSCRIBE,  /* 订阅主题 */
    MQTT_CLIENT_RUN,        /* client正常运行 */
    MQTT_CLIENT_DESTROY     /* 删除client */
};

extern response_msg response_msg_t;

extern int mqtt_init(void);
#endif
#endif  /* __MQTT_CLIENT_H__ */
